package com.risen.test.controller;

import com.risen.test.pojo.RlEsInfo;
import com.risen.test.service.RlEsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther lmj
 * @date 2019/7/30
 */

@RestController
@RequestMapping("/rlEsInfoController")
public class RlEsInfoController {

    @Autowired
    private RlEsInfoService rlEsInfoService;

    @RequestMapping("/selectRlEsInfo/{es_unid}")
    public RlEsInfo selectRlEsInfo(@PathVariable int es_unid){
        RlEsInfo rlEsInfo = rlEsInfoService.selectByPrimaryKey(es_unid);
        return rlEsInfo;
    }
}
